package com.zhang.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * 故障记录表
 * @TableName bug_register
 */
@Data
@AllArgsConstructor
@Accessors(chain = true)
public class BugRegister implements Serializable {
    /**
     * ID
     */
    private Integer id;

    /**
     * 用户id
     */
    private Integer userId;

    /**
     * 服务器id
     */
    private Integer deviceId;

    /**
     * 故障描述
     */
    private String bugDescription;

    /**
     * 故障附件
     */
    private String fileName;

    /**
     * 故障时间
     */
    private Date bugTime;

    /**
     * 修复情况
     */
    private Integer version;


    private static final long serialVersionUID = 1L;

    public BugRegister() {
    }


    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", userId=").append(userId);
        sb.append(", bugDescription=").append(bugDescription);
        sb.append(", fileName=").append(fileName);
        sb.append(", bugTime=").append(bugTime);
        sb.append(", version=").append(version);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}
